package br.com.websec.web;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import br.com.websec.banco.Banco;
import br.com.websec.banco.BancoRN;

@ManagedBean(name = "bancoBean")
@RequestScoped
public class BancoBean {

	private Banco banco = new Banco();
	
	public String salvar() {

		BancoRN bancoRN = new BancoRN();
		bancoRN.salvarBanco(banco);	
		return null;

	}

	public void cancelar() {
		
		this.banco = null;

	}

	public Banco getBanco() {
		return this.banco;
	}

	public void setBanco(Banco banco) {
		this.banco = banco;
	}

}
